﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DFGK_WMS.Context.Migrations
{
    public partial class 徐州器材新增一个字段 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AreaCode",
                table: "TReceivingOrderDetails");

            migrationBuilder.RenameColumn(
                name: "AreaName",
                table: "TReceivingOrderDetails",
                newName: "RelevanceOrderSn");

            migrationBuilder.AddColumn<string>(
                name: "ParentCode",
                table: "TMaterials",
                type: "nvarchar(max)",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ParentCode",
                table: "TMaterials");

            migrationBuilder.RenameColumn(
                name: "RelevanceOrderSn",
                table: "TReceivingOrderDetails",
                newName: "AreaName");

            migrationBuilder.AddColumn<string>(
                name: "AreaCode",
                table: "TReceivingOrderDetails",
                type: "nvarchar(max)",
                nullable: true);
        }
    }
}
